demo: add a multi-line infobar example
authorWilliam Jon McCann <william.jon.mccann@gmail.com>
Sat, 3 Aug 2013 10:18:54 +0000 (12:18 +0200)
committerWilliam Jon McCann <william.jon.mccann@gmail.com>
Sat, 3 Aug 2013 13:15:12 +0000 (15:15 +0200)
demos/gtk-demo/infobar.c

index 402a40bf81be26e975175986475c0ee89303f6e8..2bee2d4055c69fb4f4b8938d49eaf3d3ec4ecd57 100644 (file)
@@ -88,7 +88,7 @@ do_infobar (GtkWidget *do_widget)
       g_signal_connect (bar, "response", G_CALLBACK (on_bar_response), window);
       gtk_box_pack_start (GTK_BOX (vbox), bar, FALSE, FALSE, 0);
       gtk_info_bar_set_message_type (GTK_INFO_BAR (bar), GTK_MESSAGE_QUESTION);
-      label = gtk_label_new ("This is an info bar with message type GTK_MESSAGE_QUESTION");
+      label = gtk_label_new ("This is\nan info bar with message type\nGTK_MESSAGE_QUESTION");
       gtk_box_pack_start (GTK_BOX (gtk_info_bar_get_content_area (GTK_INFO_BAR (bar))), label, FALSE, FALSE, 0);
 
       button = gtk_toggle_button_new_with_label ("Question");